<%@ taglib prefix="form" uri="http://www.springframework.org/tags/form" %>
<%--
  Created by IntelliJ IDEA.
  User: Sarah
  Date: 2023/3/29
  Time: 14:24
  To change this template use File | Settings | File Templates.
--%>
<%@ page language="java" contentType="text/html; charset=UTF-8"
         pageEncoding="UTF-8" isELIgnored="false" %>

<%
    String path = request.getContextPath();
    String basePath = request.getScheme() + "://" + request.getServerName() + ":" + request.getServerPort() + path + "/";
%>
<!DOCTYPE html>
<html>
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
    <base href="<%= basePath %>"/>
    <title>注册界面</title>
</head>
<body>

<form:form action="register3" method="post" modelAttribute="person">
    <div>
        用户名<form:input path="name"></form:input>
        <form:errors path="name" cssStyle="color: red"></form:errors>
    </div>
    <div>

        密码：
        <form:password path="password"></form:password>
        <form:errors path="password" cssStyle="color: red"></form:errors>
    </div>
    <div>
        年龄：
        <form:input path="age"></form:input>
        <form:errors path="age" cssStyle="color: red"></form:errors>

    </div>
    <div>
        电话： <form:input path="phoneNo"></form:input>
        <form:errors path="phoneNo" cssStyle="color: red"></form:errors>

    </div>
    <div>
        邮箱：
        <form:input path="email"></form:input>
        <form:errors path="email" cssStyle="color: red"></form:errors>

    </div>

    <div>
        <input type="submit" value="提交">
    </div>

</form:form>


</body>
</html>